<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=YahooDemo">
</script> 
<div class="YahooMap">
	<div id="mapContainer"></div> 
	<script type="text/javascript"> 
		var currentLat = 10;
		var currentLon = -40;
		var initialPoint = new YGeoPoint(10,-40);
		var map = new YMap(document.getElementById('mapContainer')); 
		map.addPanControl(); 
		map.addZoomLong(); 
		map.drawZoomAndCenter(initialPoint, 16); 
		map.setMapType(YAHOO_MAP_HYB);
		map.addOverlay(new YGeoRSS('<%=request.getAttribute("xmlPath")%>'));
	
		function searchInMap(){
			map.drawZoomAndCenter(document.getElementById("searchString").value, 7)
			currentLat = map.getCenterLatLon().Lat;
			currentLon = map.getCenterLatLon().Lon;
		}
		
		function resetMap(){
			map.drawZoomAndCenter(initialPoint, 16); 
			map.removeMarker("point");
			pointLat = 0;
			pointLon = 0;
		}
		
		function finish(){
			if (pointLat && pointLon && pointLat != 0 && pointLon != 0){
				var thePoint = new Object();
				thePoint.lat = pointLat;
				thePoint.lon = pointLon;
				window.opener.coordinatesDone(thePoint);
				window.close();
			} else{
				alert(window.opener.mapLanguage.pointmsg);
			}
			
		}
	</script> 
</div>
<div class="YahooMapButtons">
	<input type="text" id="searchString">
	<input type="submit" name="Submit2" value="Search" id="mapSearchButton" onClick="searchInMap()">
	<input type="submit" name="Submit3" value="Reset" id="mapResetButton" onClick="resetMap()">
</div>
